<!DOCTYPE html>
<html lang="en" ng-app="myapp">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="css/index.css">
    <link rel="stylesheet" href="css/shouye.css">
    <link rel="stylesheet" href="css/tuijian.css">
    <link rel="stylesheet" href="css/gonglue.css">
    <link rel="stylesheet" href="css/fenlei.css">
    <link rel="stylesheet" href="css/mine.css">


    <script src="js/index.js"></script>
    <script src="js/jquery-3.1.1.min%20.js"></script>

    <script src="js/angular-1.4.6.min.js"></script>
    <script src="js/angular-ui-router.js"></script>
    <script src="app.js"></script>
    <script src="app1.js"></script>
</head>
<body>
<div ui-view></div>
<footer>
    <ul class="foot">
        <li ui-sref="yi" class="li1 active">
            <p class="fa fa-home"></p>
            <p>首页</p>
        </li>
        <li ui-sref="er" class="li1">
            <p class="fa fa-th-large"></p>
            <p>分类</p>
        </li>
        <li ui-sref="san" class="li1">
            <p class="fa fa-user"></p>
            <p>我</p>
        </li>
    </ul>
</footer>

<script>
    $(function() {
        $(".li1:eq(0)").addClass("active")
        $(".li1").click(function() {
            $(this).addClass("active").siblings().removeClass("active")
        })
    })
</script>
</body>
</html>